package com.fivefox.common;

import com.alibaba.fastjson2.JSONObject;

/**
 * 飞书HTTP接口响应体
 *  @author lirenqi
 */
public class FeiShuHTTPResult {

    /**
     * 错误码，非 0 表示失败
     */
    private int code;
    /**
     * 错误描述
     */
    private String msg;
    /**
     * 返回的data
     */
    private JSONObject data;

    /**
     * 租户访问凭证
     */
    private String tenant_access_token;

    public FeiShuHTTPResult() {
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public JSONObject getData() {
        return data;
    }

    public void setData(JSONObject data) {
        this.data = data;
    }

    public String getTenant_access_token() {
        return tenant_access_token;
    }

    public void setTenant_access_token(String tenant_access_token) {
        this.tenant_access_token = tenant_access_token;
    }

    @Override
    public String toString() {
        return "FeiShuHTTPResult{" +
                "code=" + code +
                ", msg='" + msg + '\'' +
                ", data=" + data +
                ", tenant_access_token='" + tenant_access_token + '\'' +
                '}';
    }
}
